package decoratorPattern;

//装饰抽象类
public abstract class BaseDecorator implements Beverage {

    protected Beverage beverage;

    public BaseDecorator(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription();
    }

    @Override
    public double cost() {
        return beverage.cost();
    }
}
